	use nondem_cross_alt_main3_replic, clear

******************************************
*VARIABLE CONSTRUCTION
******************************************

	gen liec_1 = 1 if liec<=1.5
	replace liec_1 = 0 if liec>1.5

	gen liec_2 = 1 if liec>1.5 & liec<=2.5
	replace liec_2 = 0 if liec<=1.5 | liec>2.5

	gen liec_3 = 1 if liec>2.5 & liec<=3.5
	replace liec_3 = 0 if liec<=2.5 | liec>3.5

	gen liec_4 = 1 if liec>3.5 & liec<=4.5
	replace liec_4 = 0 if liec<=3.5 | liec>4.5

	gen liec_5 = 1 if liec>4.5 & liec<=5.5
	replace liec_5 = 0 if liec<=4.5 | liec>5.5

	gen liec_6 = 1 if liec>5.5 & liec<=6.5
	replace liec_6 = 0 if liec<=5.5 | liec>6.5

	gen liec_7 = 1 if liec>6.5 
	replace liec_7 = 0 if liec<=6.5 

	gen liec_23=1 if liec_2==1 | liec_3==1
	replace liec_23=0 if liec_1==1 | (liec>3 & liec_3==0)
	label var liec_23 "Legislature, no competitive election"

	gen liec_4plus=1 if liec_4==1 | liec_5==1 | liec_6==1 | liec_7==1
	replace liec_4plus=0 if liec<4 & liec_4==0
	label var liec_4plus "Competitively elected legislature"

	gen liec_27=1 if liec_23==1 | liec_4plus==1
	replace liec_27=0 if liec_1==1
	label var liec_27 "Any legislature"

	gen fdi4_gdp_mark=100*fdi4_gdp
	ren fdi4_gdp fdi4_gdp_old
	ren fdi4_gdp_mark fdi4_gdp

	gen pop_tot_mark = pop_tot/1000000
	ren pop_tot pop_tot_old
	ren pop_tot_mark pop_tot

	gen gdppc_mark = gdppc_ppp_2005_us/10000
	ren gdppc_ppp_2005_us gdppc_ppp_2005_us_old
	ren gdppc_mark gdppc_ppp_2005_us
	label var gdppc_ppp_2005_us "Real, PPP-adjusted income/capita ($10,000)"

	replace land_km = land_km/10000
		label var land_km "land area in 10,000s of square kms"

	label var pop_tot "Total Poplulation"

ren tenure_alt tenure
ren tenure_alt_max tenure_max
ren entry_reg_avg_alt entry_reg_avg

******************************************
*DESCRIPTIVE STATISTICS  From working paper, Table 1
******************************************
*Whole sample
*Dependent variables
sum gfcf_priv_gdp gfcf4_dom_gdp fdi4_gdp exprisk

*Measures of Capacity for Collective Action
sum gov1_yrs entry_reg_avg liec_27 liec_4plus 

*Controls
sum tenure stabs fuelex_gdp oresex_gdp pop_yng_pct pop_tot gdppc_ppp_2005_us

*Summary statistics for sample used in regressions.
	*Dependent variables (use sample based on LIEC regressions)
	quietly reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
		tabstat gfcf_priv_gdp if e(sample), statistics(mean sd n min max) columns(statistics)
	quietly reg gfcf4_dom_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs)
		tabstat gfcf4_dom_gdp if e(sample), statistics(mean sd n min max) columns(statistics)
	quietly reg fdi4_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs)
		tabstat fdi4_gdp if e(sample), statistics(mean sd n min max) columns(statistics)
	quietly reg exprisk liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs)
		tabstat exprisk if e(sample), statistics(mean sd n min max) columns(statistics)

	*Measures of capacity for collective action (use sample for private investment on lhs; only need to run reg once--other samples nested)
	quietly reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
		tabstat gov1_yrs entry_reg_avg liec_27 liec_4plus if e(sample), statistics(mean sd n min max) columns(statistics)

	*Controls (use sample for private investment on lhs and legislature on rhs)
	quietly reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
		tabstat tenure stabs fuelex_gdp oresex_gdp pop_yng_pct pop_tot gdppc_ppp_2005_us if e(sample), statistics(mean sd n min max) columns(statistics)


******************************************
*TABLE 1: RPI AND PRIVATE INVESTMENT
******************************************

	reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf4_dom_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi4_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_priv_gdp (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) first
	ivreg gfcf4_dom_gdp (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) first
	ivreg fdi4_gdp (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) first


******************************************************************
*TABLE 2: REGULARIZED ENTRY, LEGISLATURES, AND PRIVATE INVESTMENT*
******************************************************************

	reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf4_dom_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi4_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_priv_gdp (entry_reg_avg = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) first
	ivreg gfcf4_dom_gdp (entry_reg_avg = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) first
	ivreg fdi4_gdp (entry_reg_avg = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) first

	reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf4_dom_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi4_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 


******************************************
*TABLE 3: ROBUSTNESS
******************************************

	*Coefficients from Tables 2 and 3
	reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 


	*Add coups in ten years prior to episode onset 
	reg gfcf_priv_gdp gov1_yrs tenure stabs coup_attempt_lag10  fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us ,  cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg coup_attempt_lag10 tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus coup_attempt_lag10 tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 


	*Add coups within episode
	reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us ,  cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg coup_attempt tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus coup_attempt tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	*NOTE:  coups are NEVER in the first or last year of a nondemocratic episode.


	*Drop all covariates (bivariate regressions)
	reg gfcf_priv_gdp gov1_yrs, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus, cluster(ifs) 

	
	*Drop all covariates, but use sample from Tables 2 and 3
	quietly reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
		reg gfcf_priv_gdp gov1_yrs if e(sample), cluster(ifs) 
	quietly reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
		reg gfcf_priv_gdp entry_reg_avg if e(sample), cluster(ifs) 
	quietly reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
		reg gfcf_priv_gdp liec_27 liec_4plus if e(sample), cluster(ifs) 
		

	*Add continent dummies
	reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us sasia eastasia africa latam, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us sasia eastasia africa latam, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us sasia eastasia africa latam, cluster(ifs) 
	

	*Add log of Frankel-Romer Trade Index
	reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us lnfrnkrom, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us lnfrnkrom, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us lnfrnkrom, cluster(ifs) 


	*FDI only sample
	reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if fdi4_gdp~=., cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if fdi4_gdp~=., cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if fdi4_gdp~=., cluster(ifs) 


	*Robust regresion (under-weight influential observations)
	rreg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, tune(6)
	rreg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, tune(6)
	rreg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, tune(6)


	*Exclude countries with population under 1 million
	reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if pop_tot>1, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if pop_tot>1, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if pop_tot>1, cluster(ifs) 


	*Add China dummy
	gen china=1 if nondem_episode==3700
	replace china=0 if nondem_episode~=3700
	label var china "China"

	reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us china, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us china, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us china, cluster(ifs) 


	*Drop young nondemocracies (<= 5 years)
	reg gfcf_priv_gdp gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if tenure_max>5, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if tenure_max>5, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if tenure_max>5, cluster(ifs) 

	*Add ideological controls
	gen rightwing = 1 if gov1rlc >.5 & gov1rlc < 1.5
		replace rightwing = 0 if gov1rlc < = .5 | gov1rlc > 1.5 & gov1rlc~=.
	gen leftwing = 1 if gov1rlc > 2.5 & gov1rlc~=.
		replace leftwing = 0 if gov1rlc <=2.5 
	reg gfcf_priv_gdp gov1_yrs rightwing leftwing tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg rightwing leftwing tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 	
	reg gfcf_priv_gdp liec_27 liec_4plus rightwing leftwing tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 


	*Use Cheibub, Gandhi, Vreeland definition of democracy
		*SEE BELOW for regressions


******************************************
*Working Paper TABLE 5: RPI, REGULARIZED ENTRY, LEGISLATURES, AND EXPROPRIATION RISK
******************************************

	reg exprisk gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg exprisk (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg exprisk entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg exprisk (entry_reg_avg = military_first)  tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs)
	reg exprisk liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*Result reported in discussion on page 26
	reg exprisk yrsoffc tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg exprisk gov1age tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg exprisk entry_reg_avg yrsoffc tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	ivreg exprisk (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, beta


*****************************************************
*Use Cheibub, Gandhi, Vreeland definition of democracy
*****************************************************

*	FOR ALL CHEIBUB:  use nondem_cross_cheibub_main3_replic.  FOR EPISODES COMMON TO BOTH CHEIBUB-DPI definitions:  use nondem_cross_cheibub_overlap_main3_replic


	gen liec_1 = 1 if liec<=1.5
	replace liec_1 = 0 if liec>1.5

	gen liec_2 = 1 if liec>1.5 & liec<=2.5
	replace liec_2 = 0 if liec<=1.5 | liec>2.5

	gen liec_3 = 1 if liec>2.5 & liec<=3.5
	replace liec_3 = 0 if liec<=2.5 | liec>3.5

	gen liec_4 = 1 if liec>3.5 & liec<=4.5
	replace liec_4 = 0 if liec<=3.5 | liec>4.5

	gen liec_5 = 1 if liec>4.5 & liec<=5.5
	replace liec_5 = 0 if liec<=4.5 | liec>5.5

	gen liec_6 = 1 if liec>5.5 & liec<=6.5
	replace liec_6 = 0 if liec<=5.5 | liec>6.5

	gen liec_7 = 1 if liec>6.5 
	replace liec_7 = 0 if liec<=6.5 

	gen liec_23=1 if liec_2==1 | liec_3==1
	replace liec_23=0 if liec_1==1 | (liec>3 & liec_3==0)
	label var liec_23 "Legislature, no competitive election"

	gen liec_4plus=1 if liec_4==1 | liec_5==1 | liec_6==1 | liec_7==1
	replace liec_4plus=0 if liec<4 & liec_4==0
	label var liec_4plus "Competitively elected legislature"

	gen liec_27=1 if liec_23==1 | liec_4plus==1
	replace liec_27=0 if liec_1==1
	label var liec_27 "Any legislature"

	gen fdi4_gdp_mark=100*fdi4_gdp
	ren fdi4_gdp fdi4_gdp_old
	ren fdi4_gdp_mark fdi4_gdp

	gen pop_tot_mark = pop_tot/1000000
	ren pop_tot pop_tot_old
	ren pop_tot_mark pop_tot

	gen gdppc_mark = gdppc_ppp_2005_us/10000
	ren gdppc_ppp_2005_us gdppc_ppp_2005_us_old
	ren gdppc_mark gdppc_ppp_2005_us

*Regressions in Table 3
	reg gfcf_priv_gdp gov1_yrs tenure_cheibub stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us , cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg_cheibub tenure_cheibub stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus tenure_cheibub stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 


******************************************
*OTHER ROBUSTNESS CHECKS USING BASE SAMPLE (NOT INCLUDED IN TABLES)
******************************************

	use nondem_cross_alt_main3_replic, clear

	*Use Polity variables (one at a time, without and with our variables) - ROBUST, POLITY NEVER SIGNIFICANT
	reg gfcf_priv_gdp polcomp tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp xconst tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp exrec tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	*
	reg gfcf_priv_gdp gov1_yrs polcomp tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg polcomp tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus polcomp tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	*
	reg gfcf_priv_gdp gov1_yrs xconst tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg xconst tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus xconst tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	*
	reg gfcf_priv_gdp gov1_yrs exrec tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg exrec tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus exrec tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	

	*Drop if Polity dem scores>aut scores (following Besley-Kudamatsu, who do this): gov1_yrs not robust; others are.
	reg gfcf_priv_gdp gov1_yrs stabs tenure fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if autoc>democ ,  cluster(ifs) 
	reg gfcf_priv_gdp entry_reg_avg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if autoc>democ , cluster(ifs) 
	reg gfcf_priv_gdp liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us if autoc>democ , cluster(ifs) 



	*Use investment data collected in 2007, 2009

	*GOV1_YRS
	*Robust
	reg gfcf_priv_gdp_coll07 gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp_coll09 gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	
	*Robust
	ivreg gfcf_priv_gdp_coll07 (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_priv_gdp_coll09 (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*Robust
	reg gfcf_net_dom_gdp_coll07 gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_net_dom_gdp_coll09 gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*Robust.
	ivreg gfcf_net_dom_gdp_coll07 (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_net_dom_gdp_coll09 (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*Robust (not sign)
	reg fdi_net_gdp_coll07 gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi_net_gdp_coll09 gov1_yrs tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*ROBUST
	ivreg fdi_net_gdp_coll07 (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg fdi_net_gdp_coll09 (gov1_yrs = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*ENTRY_REG

	*Robust
	reg gfcf_priv_gdp_coll07 entry_reg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp_coll09 entry_reg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	
	*Robust
	ivreg gfcf_priv_gdp_coll07 (entry_reg = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_priv_gdp_coll09 (entry_reg = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*robust
	reg gfcf_net_dom_gdp_coll07 entry_reg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_net_dom_gdp_coll09 entry_reg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*Robust
	ivreg gfcf_net_dom_gdp_coll07 (entry_reg = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_net_dom_gdp_coll09 (entry_reg = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*Robust
	reg fdi_net_gdp_coll07 entry_reg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi_net_gdp_coll09 entry_reg tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*Robust
	ivreg fdi_net_gdp_coll07 (entry_reg = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg fdi_net_gdp_coll09 (entry_reg = military_first) tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 


	*LIEC
	*Robust
	reg gfcf_priv_gdp_coll07 liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_priv_gdp_coll09 liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	
	*robust
	reg gfcf_net_dom_gdp_coll07 liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf_net_dom_gdp_coll09 liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*Robust for 07, not for 09 (significant at p = .102)
	reg fdi_net_gdp_coll07 liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi_net_gdp_coll09 liec_27 liec_4plus tenure stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 



******************************************
*ROBUSTNESS TO STRICT DEFINITION OF AUTOCRACY 
******************************************

	use nondem_cross_strict_main3, clear

	gen liec_1 = 1 if liec<=1.5
	replace liec_1 = 0 if liec>1.5

	gen liec_2 = 1 if liec>1.5 & liec<=2.5
	replace liec_2 = 0 if liec<=1.5 | liec>2.5

	gen liec_3 = 1 if liec>2.5 & liec<=3.5
	replace liec_3 = 0 if liec<=2.5 | liec>3.5

	gen liec_4 = 1 if liec>3.5 & liec<=4.5
	replace liec_4 = 0 if liec<=3.5 | liec>4.5

	gen liec_5 = 1 if liec>4.5 & liec<=5.5
	replace liec_5 = 0 if liec<=4.5 | liec>5.5

	gen liec_6 = 1 if liec>5.5 & liec<=6.5
	replace liec_6 = 0 if liec<=5.5 | liec>6.5

	gen liec_7 = 1 if liec>6.5 
	replace liec_7 = 0 if liec<=6.5 

	gen liec_23=1 if liec_2==1 | liec_3==1
	replace liec_23=0 if liec_1==1 | (liec>3 & liec_3==0)
	label var liec_23 "Legislature, no competitive election"

	gen liec_4plus=1 if liec_4==1 | liec_5==1 | liec_6==1 | liec_7==1
	replace liec_4plus=0 if liec<4 & liec_4==0
	label var liec_4plus "Competitively elected legislature"

	gen liec_27=1 if liec_23==1 | liec_4plus==1
	replace liec_27=0 if liec_1==1
	label var liec_27 "Any legislature"

	gen fdi4_gdp_mark=100*fdi4_gdp
	ren fdi4_gdp fdi4_gdp_old
	ren fdi4_gdp_mark fdi4_gdp

	gen pop_tot_mark = pop_tot/1000000
	ren pop_tot pop_tot_old
	ren pop_tot_mark pop_tot

	gen gdppc_mark = gdppc_ppp_2005_us/10000
	ren gdppc_ppp_2005_us gdppc_ppp_2005_us_old
	ren gdppc_mark gdppc_ppp_2005_us

	*ROBUST
	reg gfcf_priv_gdp gov1_yrs tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_priv_gdp (gov1_yrs = military_first) tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf4_dom_gdp gov1_yrs tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf4_dom_gdp (gov1_yrs = military_first) tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi4_gdp gov1_yrs tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg fdi4_gdp (gov1_yrs = military_first) tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
		
	*ROBUST
	reg gfcf_priv_gdp entry_reg_avg_strict tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf4_dom_gdp entry_reg_avg_strict tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi4_gdp entry_reg_avg_strict tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_priv_gdp (entry_reg_avg_strict = military_first) tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf4_dom_gdp (entry_reg_avg_strict = military_first) tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg fdi4_gdp (entry_reg_avg_strict = military_first) tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*NOT ROBUST (liec_4plus insignificant in all regressions)
	reg gfcf_priv_gdp liec_27 liec_4plus tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf4_dom_gdp liec_27 liec_4plus tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi4_gdp liec_27 liec_4plus tenure_strict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

******************************************
*ROBUSTNESS TO VERY STRICT DEFINITION OF AUTOCRACY (NOT INCLUDED IN TABLES)
******************************************

	use nondem_cross_verystrict_main3, clear

	gen liec_1 = 1 if liec<=1.5
	replace liec_1 = 0 if liec>1.5

	gen liec_2 = 1 if liec>1.5 & liec<=2.5
	replace liec_2 = 0 if liec<=1.5 | liec>2.5

	gen liec_3 = 1 if liec>2.5 & liec<=3.5
	replace liec_3 = 0 if liec<=2.5 | liec>3.5

	gen liec_4 = 1 if liec>3.5 & liec<=4.5
	replace liec_4 = 0 if liec<=3.5 | liec>4.5

	gen liec_5 = 1 if liec>4.5 & liec<=5.5
	replace liec_5 = 0 if liec<=4.5 | liec>5.5

	gen liec_6 = 1 if liec>5.5 & liec<=6.5
	replace liec_6 = 0 if liec<=5.5 | liec>6.5

	gen liec_7 = 1 if liec>6.5 
	replace liec_7 = 0 if liec<=6.5 

	gen liec_23=1 if liec_2==1 | liec_3==1
	replace liec_23=0 if liec_1==1 | (liec>3 & liec_3==0)
	label var liec_23 "Legislature, no competitive election"

	gen liec_4plus=1 if liec_4==1 | liec_5==1 | liec_6==1 | liec_7==1
	replace liec_4plus=0 if liec<4 & liec_4==0
	label var liec_4plus "Competitively elected legislature"

	gen liec_27=1 if liec_23==1 | liec_4plus==1
	replace liec_27=0 if liec_1==1
	label var liec_27 "Any legislature"

	gen fdi4_gdp_mark=100*fdi4_gdp
	ren fdi4_gdp fdi4_gdp_old
	ren fdi4_gdp_mark fdi4_gdp

	gen pop_tot_mark = pop_tot/1000000
	ren pop_tot pop_tot_old
	ren pop_tot_mark pop_tot

	gen gdppc_mark = gdppc_ppp_2005_us/10000
	ren gdppc_ppp_2005_us gdppc_ppp_2005_us_old
	ren gdppc_mark gdppc_ppp_2005_us

	*NOT ROBUST  (<60 episodes for non-fdi)
	reg gfcf_priv_gdp gov1_yrs tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf4_dom_gdp gov1_yrs tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi4_gdp gov1_yrs tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_priv_gdp (gov1_yrs = military_first) tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf4_dom_gdp (gov1_yrs = military_first) tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg fdi4_gdp (gov1_yrs = military_first) tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*ROBUST - ONLY IV GFCF4_DOM is insignificant
	reg gfcf_priv_gdp entry_reg_avg_verystrict tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf4_dom_gdp entry_reg_avg_verystrict tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi4_gdp entry_reg_avg_verystrict tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf_priv_gdp (entry_reg_avg_verystrict = military_first) tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg gfcf4_dom_gdp (entry_reg_avg_verystrict = military_first) tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	ivreg fdi4_gdp (entry_reg_avg_verystrict = military_first) tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

	*ROBUST
	reg gfcf_priv_gdp liec_27 liec_4plus tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg gfcf4_dom_gdp liec_27 liec_4plus tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 
	reg fdi4_gdp liec_27 liec_4plus tenure_verystrict stabs fuelex_gdp oresex_gdp frac_ethn frac_relig frac_ling pop_yng_pct pop_tot pop_ru_pct land_km gdppc_ppp_2005_us, cluster(ifs) 

